import org.apache.commons.lang.time.DateFormatUtils;

import java.sql.Timestamp;
import java.util.Calendar;
import java.util.Date;

/**
 * @author :陈磊 <br/>
 *         Project:CreazyGameServer1.2
 *         Date: 13-3-16
 *         Time: 下午3:58
 *         connectMethod:13638363871@163.com<br/>
 */
public class testTime {


    public static void main(String[]args){
        Timestamp time = new Timestamp(System.currentTimeMillis());
        Calendar calendar=Calendar.getInstance();

         System.out.println(calendar.get(Calendar.MINUTE));
        long nowTime = System.currentTimeMillis();
        Timestamp timestamp = new Timestamp(nowTime);
        String format = DateFormatUtils.format(new Date(), "yyyy-MM-dd HH:mm:ss");
        System.out.println(format);

    }
}
